package cn.elves.model.draw.service.algorithm;

/**
 * @author 精灵
 * @time 2024-06-19   10:36
 */
public class DrawContextHolder {

    private static ThreadLocal<DrawParam> holder = new ThreadLocal<>();

    public static void set(DrawParam drawParam) {
        holder.set(drawParam);
    }

    public static DrawParam get() {
        return holder.get();
    }

    public static void clear() {
        holder.remove();
    }



}
